<?php
	class chatlieubs
	{
		public $MaChatLieu = 0;
		public $TenChatLieu = "";
		
		public function Add()
		{
			$db = new chatlieudb();
			return $db->Add($this->TenChatLieu);
		}
		
		public function Delete()
		{
			$db = new chatlieudb();
			return $db->Delete($this->MaChatLieu);
		}
		
		public function Update()
		{
			$db = new chatlieudb();
			return $db->Update($this->MaChatLieu, $this->TenChatLieu);
		}
		
		public function GetList()
		{
			$db = new chatlieudb();
			return $db->GetList($this->MaChatLieu, $this->TenChatLieu);
		}
		public function Find()
		{
			$db = new chatlieudb();
			return $db->Find($this->TenChatLieu);
		}
	}
?>